<script type="text/javascript">
var zTreeObj;
function initTree(onClick){
	
	
	var setting = {
		async : {
			enable: true,
			url: "${base}/department/loadNext",
			autoParam: ["id"]
		},
		callback:{
			onClick:function(event,treeId,treeNode,clickFlag){
				if (onClick){
					onClick(zTreeObj,treeNode);
				}
			}
		}
	};
	
	var zNodes = [
	{
		id:"${company.id}",
		name:"${company.name}",
		isParent:true
	}
	];

	zTreeObj = $.fn.zTree.init($("#treeDemo"), setting, zNodes);
}
</script>
<div>
   <ul id="treeDemo" class="ztree"></ul>
</div>